UNDOS

Section: User Commands (1)
Updated: OMEN
Index Return to Main Contents
 

NAME

undos,tounix,todos,tocpm,tomac,unmac,unparity - Change ASCII file format for target operating system  

SYNOPSIS

undos [ -s ] file ...
tounix [ -s ] file ...
todos [ -s ] file ...
tocpm [ -s ] file ...
unmac [ -s ] file ...
tomac [ -s ] file ...
unparity file ...  

DESCRIPTION

Undos and tounix convert DOS or CP/M format source files to Unix format by deleting carriage returns preceding linefeeds and eliminating characters starting with CPMEOF (^Z).

Todos converts Unix format source files to DOS format by adding a carriage return (if not already present) before each linefeed, and eliminates characters starting with CPMEOF (^Z). Tocpm additionally appends CPMEOF (^Z) characters to the resulting file to make the file length a multiple of the 128 byte CP/M record length. Any combination of undos, todos, or tocpm (without flags) may be applied to a proper ASCII file without destroying information. Lone carriage returns used to force overprinting are not translated to CR/LF pairs. Unmac converts files with lines terminated only by carriage return to Unix format. Unmac should only be used to translate files whose lines are terminated by lone carriage returns. Tomac converts Unix format files to Macintosh format (lines terminated by carriage return only). The optional flag -s Strips the parity bit on all characters and discards all resulting characters with values less than 7. Unparity merely strips the parity bit from the files. The access and modification times of the modified files are set to those of the original files.  

DIAGNOSTICS

Refuses to translate files in which "binary" characters (less than 7 or greater than 127) are seen before CPMEOF. Refuses to translate files with ultra long lines. Refuses to translate special files.  

NOTES

Should be executed with the current directory in the same filesystem as the target files for minimum disk i/o.  

BUGS

Does not detect short files without linefeeds. Unmac and tomac cannot handle files with CR-only overprinting. (ASCII allows either LF or CR/LF to delimit lines, but not CR.)  

SEE ALSO

lar(1), yam(1), sq(1), usq(1), rb(omen), sb(omen)
 

Index

NAME
SYNOPSIS
DESCRIPTION
DIAGNOSTICS
NOTES
BUGS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:55:36 GMT, September 03, 2025